# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-emoji
_pkgname=emoji
pkgver=2.14.1
pkgrel=1
pkgdesc='Emoji for Python.'
url='https://pypi.org/project/emoji/#files'
arch=('any')
depends=('python')
makedepends=('python-setuptools')
license=('BSD')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('ea5132cccd8be36d7d6f7b017240452e0ca8a96454333c0786fe371d83f55f326b41f2a221cea403fb4fc769032374e2a2e96e2f18cba5e1bef89f2c31fad0a7')

build() {
  cd $_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

